package com.rgbgame;

import org.jbox2d.common.Vec2;

public class RGBInput {
	/** Array of key states, by char value.  Does not include arrows or modifier keys. */
    static public boolean[] keyDown = new boolean[255];
    /** Same as keyDown, but true only if the key was newly pressed this frame. */
    static public boolean[] newKeyDown = new boolean[255];
    /** Screen coordinates of mouse */
    static public Vec2 mouseScreen = new Vec2();
    /** Screen coordinates of mouse on last frame */
    static public Vec2 pmouseScreen = new Vec2();
    /** Is the mouse pressed this frame? */
    static public boolean mousePressed;
    /** Was the mouse pressed last frame?  True if either right or left button was down. */
    static public boolean pmousePressed;
    
    static public void resetStatics() {
    	keyDown = new boolean[255];
    	newKeyDown = new boolean[255];
    	mouseScreen = new Vec2();
    	pmouseScreen = new Vec2();
    	mousePressed = false;
    	pmousePressed = false;
    }
    
}
